import YoudaoTranslate from './youdao-translate.js';
import BaiduTranslate from './baidu-translate.js';
import BingTranslate from './bing-translate.js';
import TencentTranslate from './tencent-translate.js';

let Translate = function(translateType, str, from, to, callback) {
	switch(translateType) {
		case 'youdao':
			YoudaoTranslate(str, from, to, callback);
		break;
		case 'bing':
			BingTranslate(str, from, to, callback);
		break;
		case 'baidu':
			BaiduTranslate(str, from, to, callback);
		break;
		case 'tencent':
			TencentTranslate(str, from, to, callback);
		break;
	}
}


export default Translate;